package com.zrrd.learn.chapter08.proxy.Image;

import lombok.Data;

/**
 * 代理对象
 *
 * @author asus
 * @version 1.0
 * @date 2023/8/4 10:22
 */@Data
public class ProxyImage implements Image{

  private   Reallmage  realImage ;
  private  String fileName;

  public  ProxyImage(String fileName){
      this.fileName = fileName;
  }
  @Override
    public  void display(){

      realImage.display();
    }

}
